<template>
  <el-container style="height: 840px; border: 1px solid #eee; background-color: #fff">
    <el-aside class="ulaside">
      <el-menu>
        <el-menu-item class="tabTitle">表名</el-menu-item>
        <el-menu-item index="1" class="tableName"><svg-icon icon-class="list_list icon" style="margin-right:5px" />选项1</el-menu-item>
        <el-menu-item index="2" class="tableName"><svg-icon icon-class="list_list icon" style="margin-right:5px" />选项2</el-menu-item>
        <el-menu-item index="3" class="tableName"><svg-icon icon-class="list_list icon" style="margin-right:5px" />选项3</el-menu-item>
      </el-menu>
    </el-aside>
  
    <el-container>
      
      <el-main>
        <div class="structureName"><span class="squareStyle" />表结构</div>
        <el-table :data="tableData">
          <el-table-column prop="date" label="日期" width="140" />
          <el-table-column prop="name" label="姓名" width="120" />
          <el-table-column prop="address" label="地址" />
        </el-table>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    }
    return {
      tableData: Array(30).fill(item)
    }
  }
}
</script>

<style scoped lang="scss">
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }

.ulaside{
  color: #333;
   width:200px !important;
   border-right: solid 1px #e6e6e6;
   .el-menu{
     border-right: none;
     .tabTitle{
    text-align: center;
    color: #000;
    height: 50px;
    line-height: 70px;
    font-size: 15px;
    font-weight: 600;
  }
  .tableName{
    padding-left: 20px;
    height: 32px;
    line-height: 32px;
  }
   }
  
}

.structureName{
  background-color: #f7f8fa;
  height: 50px;
  margin-bottom: 20px;
  line-height: 50px;
  padding-left: 20px;
  .squareStyle{
    display: block;
    width: 10px;
    height: 35px;
    background-color: #5496f2;
    margin-top: 7px;
    float: left;
    margin-right: 15px;
  }
}
  
</style>
